# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Branch',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('branch_name', models.CharField(max_length=50, verbose_name='\u5206\u652f\u540d\u79f0')),
            ],
        ),
        migrations.CreateModel(
            name='Log',
            fields=[
                ('commit', models.CharField(max_length=50, unique=True, serialize=False, verbose_name='\u7248\u672c\u53f7', primary_key=True)),
                ('datetime', models.DateTimeField(null=True, verbose_name='\u63d0\u4ea4\u65f6\u95f4')),
                ('files', models.IntegerField(null=True, verbose_name='\u88ab\u4fee\u6539\u7684\u6587\u4ef6\u6570')),
                ('add', models.IntegerField(null=True, verbose_name='\u589e\u52a0\u7684\u884c\u6570')),
                ('remove', models.IntegerField(null=True, verbose_name='\u5220\u9664\u7684\u884c\u6570')),
            ],
        ),
        migrations.CreateModel(
            name='Project',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('pro_name', models.CharField(max_length=50, null=True, verbose_name='\u9879\u76ee\u540d')),
                ('dict', models.CharField(max_length=100, verbose_name='\u9879\u76ee\u8def\u5f84')),
                ('note', models.CharField(max_length=100, null=True, verbose_name='\u9879\u76ee\u8bf4\u660e')),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('username', models.CharField(unique=True, max_length=50, verbose_name='\u7528\u6237\u540d')),
                ('email', models.CharField(max_length=50)),
            ],
        ),
        migrations.AddField(
            model_name='log',
            name='author',
            field=models.ForeignKey(verbose_name='\u4f5c\u8005', to='gitproject.User', null=True),
        ),
        migrations.AddField(
            model_name='log',
            name='branch',
            field=models.ForeignKey(verbose_name='\u96b6\u5c5e\u5206\u652f', to='gitproject.Branch'),
        ),
        migrations.AddField(
            model_name='branch',
            name='project',
            field=models.ForeignKey(verbose_name='\u96b6\u5c5e\u9879\u76ee', to='gitproject.Project'),
        ),
    ]
